package model

import (
	"time"
)

type Place struct {
	CreateTime *time.Time `gorm:"column:create_time"`    //创建时间
	Enc        string     `gorm:"column:enc"`            //编码
	ID         int        `gorm:"column:id;primary_key"` //主键
	Price      float64    `gorm:"column:price"`          //单位 /小时
	Remake     string     `gorm:"column:remake"`         //备注
	Seat       string     `gorm:"column:seat"`           //位置
	State      int        `gorm:"column:state"`          //状态
	Storey     string     `gorm:"column:storey"`         //楼层
	UpdateTime *time.Time `gorm:"column:update_time"`    // 修改时间
}

// TableName sets the insert table name for this struct type
func (u *Place) TableName() string {
	return "parking_place"
}
